<template>
  <div class="wrap">
    <header>
      <div class="header_main">
        <!-- 导航栏 -->
        <div class="tou">购物车</div>
        <div class="headerBottom">
          <nav>
            <ul>
              <li class="active">
                <a href>全部(20)</a>
              </li>
              <li>
                <a href>降价(4)</a>
              </li>
              <li>
                <a href>热卖(2)</a>
              </li>
              <li>
                <a href>
                  分类
                  <span></span>
                </a>
              </li>
            </ul>
          </nav>
        </div>
      </div>
    </header>
    <main>
      <div class="main_main">
        <div class="mainTop">
          <div class="mainTop_right">
            <span></span>
            <input type="checkbox" class="input1" />
            <p>小U自营</p>
          </div>
          <div class="mainTop_left">
            <p>以免运费</p>
            <p>领券</p>
          </div>
        </div>
        <van-swipe-cell>
          <!-- <input type="checkbox" class="input2">   -->

          <van-checkbox v-model="checked"></van-checkbox>
          <van-card
            num="2"
            price="9999"
            desc="iphone 16 pro Max"
            title="苹果手机"
            class="goods-card"
            thumb="https://img11.360buyimg.com/n7/jfs/t1/230294/28/15853/33207/660d188cFd9db894f/fed9c49755b30553.jpg"
          >
            <template #footer>
              <van-button size="mini">+</van-button>

              <van-button size="mini">-</van-button>
            </template>
          </van-card>
          <template #right>
            <van-button
              square
              text="删除"
              type="danger"
              class="delete-button"
            />
          </template>
        </van-swipe-cell>
        <!-- <div>
          <van-submit-bar :price="111" button-text="提交订单" >
            <van-checkbox  v-model="checked">全选</van-checkbox>
          </van-submit-bar>
        </div> -->
        <!-- 判断购物车商品有没有数据 没有时删除 -->
        <!-- <div class="box1111" >
          <van-submit-bar :price="3050" button-text="提交订单" >
            <van-checkbox >全选</van-checkbox>
          </van-submit-bar>
        </div> -->
        <!-- <van-submit-bar :price="3050" button-text="提交订单" safe-area-inset-bottom @click="$router.push(`/dizi`)">
          <van-checkbox v-model="checked">全选</van-checkbox>
          <template #tip>
            你的收货地址不支持同城送,
            <span @click="onClickEditAddress">修改地址</span>
          </template>
          
        </van-submit-bar> -->
      </div>
    </main>
    <div class="box111">
      <div class="box11 input11"><input type="checkbox" />全选</div>

      <span class="box11"
        >合计：
        <h1>￥0.00</h1></span
      >
      <button class="box11 button21"  @click="$router.push(`/dingdan`)">去结算</button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      radio: "1",
      checked: true,
    };
  },
};
</script>

<style  scoped>
shopright .element .style {
  font-size: 64px;
  background: #ccc;
}
.box111 {
  height: 1rem;
  display: flex;
  /* 为了看到效果，你可以为父元素设置一个宽度和背景色 */
  width: 100%; /* 或者你想要的任何宽度 */
  background-color: #ffffff;
  margin-top: 73%;
}

.box11 {
  float: left;
  flex: 1;
  background-color: #ffffff;
  /* height: 50px; 
    margin: 5px;  */
}
.input11 {
  margin-left: auto;
  margin-right: auto;
  /* 注意：这种方法需要指定元素的宽度 */
  width: 50px; /* 示例宽度 */
}
.box111 span {
  float: right;
  font-size: 0.3rem;
  margin-left: 1rem;
}
.button21 {
  width: 30px;
  height: 40px;
  border: #fff;
  border-radius: 10px;
  background-color: #fb4723;
  color: #fff;
}
.box111 h1 {
  color: #fb4723;
  font-size: 0.4rem;
  float: left;
}
.tou {
  width: 100%;
  background-color: #fb4723;
  height: 46px;
  color: #323233;
  font-size: 24px;
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
}
.van-nav-bar__content .van-nav-bar__title .van-ellipsis {
  max-width: 60%;
  margin: 0 auto;
  color: #ffffff;
  font-weight: 500;
  font-size: 20px;
}
.wrap {
  width: 7.5rem;
  height: 100vh;
  margin: 0 auto;
  background-color: #ccc;
}
.wrap header {
  width: 7.5rem;
  background-color: #ff5e3f;
}
.header_main {
  width: 7.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.van-nav-bar {
  background: #ff6040;
}
.van-nav-bar {
  width: 100%;
  background-image: linear-gradient(
      180deg,
      #fe502d 0%,
      #fb4723 31%,
      #fb5136 71%,
      #ff5849 100%
    ),
    linear-gradient(#fff3f2, #fff3f2);
}
.headerBottom {
  width: 7rem;
  height: 0.68rem;
}

.headerBottom nav ul {
  display: flex;
  justify-content: space-around;
  width: 7rem;
  overflow: auto;
}
.headerBottom nav ul li {
  position: relative;
}
.headerBottom nav ul li a {
  display: block;
  padding: 0 0.12rem;
  line-height: 0.68rem;
  font-size: 0.26rem;
  color: #ffff;
  /* white-space: nowrap; */
}
.headerBottom nav ul li span {
  font-size: 0.21rem;
}
.headerBottom nav ul .active a {
  font-size: 0.3rem;
  /* font-weight: bold; */
}
.headerBottom nav ul .active::after {
  content: "";
  display: block;
  width: 0.64rem;
  height: 0.04rem;
  background-color: #fff;
  border-radius: 0.01rem;
  position: absolute;
  bottom: 0rem;
  left: 50%;
  margin-left: -0.34rem;
}
mian {
  width: 7.5rem;
  height: 13.84rem;
}
.input1 {
  width: 0.4rem;
  height: 0.4rem;
}
.input2 {
  width: 1rem;
  height: 1rem;
  float: left;
  margin-top: 1rem;
}
.main_main {
  width: 7rem;
  padding: 0.248rem;
  background: white;
}
.mainTop {
  width: 7rem;
  height: 0.72rem;
  /* background-color: #fff; */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mainTop_right {
  width: 1.75rem;
  height: 0.33rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mainTop_left {
  width: 1.84rem;
  height: 0.25rem;
  display: flex;
  justify-content: space-between;
}
.mainTop_right span {
  font-size: 0.32rem;
}
.mainTop_right p {
  font-size: 0.31rem;
}
.mainTop_left p {
  font-size: 0.24rem;
}
.mainTop_left p:nth-child(2) {
  font-size: 0.24rem;
  color: #ff6040;
}
.mainmian {
  width: 7rem;
  margin: 0rem auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  padding-bottom: 70px;
}
.goods-card {
  margin: 0;
  background-color: white;
}

.delete-button {
  height: 100%;
}
footer1 {
  float: left;
  margin-left: 10px;
}
.van-submit-bar {
  margin-top: 10px;
}
</style>